var map = {"":"index.html","test":"src/test.html"};
function addRouter(pathname,path){
    map[pathname] = path;
}
function route(pathname) {
    pathname = pathname.substr(1);
    return map[pathname]||"errorPath";
}

exports.route = route;
exports.addRouter = addRouter;
